package cc.ilzy.mall.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ilzy
 * @since 2025-07-09
 */
@Getter
@Setter
@ToString
@TableName("banner")
@Accessors(chain = true)
@ApiModel(value = "Banner对象", description = "")
public class Banner implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    /**
     * 图片
     */
    @TableField("img")
    @ApiModelProperty("图片")
    private String img;

    /**
     * 跳转地址
     */
    @TableField("url")
    @ApiModelProperty("跳转地址")
    private String url;

    /**
     * 权重
     */
    @TableField("weight")
    @ApiModelProperty("权重")
    private Integer weight;
}
